package com.unknownman.block.mapper;

import com.unknownman.block.entity.TNft;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * NFT列表 Mapper 接口
 * </p>
 *
 * @author xhy
 * @since 2021-10-15
 */
public interface TNftMapper extends BaseMapper<TNft> {

    /**
     * 更新nft所属人
     *
     * @param contractConfigId
     * @param tokenId
     * @param owner
     * @return
     */
    int updateNftOwner(@Param("contractConfigId") Long contractConfigId, @Param("tokenId") Long tokenId,
                       @Param("owner") String owner, @Param("oldTransCount") Integer oldTransCount);

}
